LU

[Encerrado] [Pokemon] Dúvidas? - Pda

Por lucashgas, 10 de jan. de 2012 em Tópicos Sem Resposta

brun123
pokemon
otserv
tibia
12.4k
2M
KurobisuK
22 de julho de 2012 às 09:45

@Jhonsy

achu q eh isso..

 

function onSay(cid, words, param, channel)

 

if not tostring(param) then

return doPlayerSendTextMessage(cid, 27, "Digite um nome para seu pokemon!")

end

 

local tablee = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "w", "y", "z", ".", ":", "'", '"', "~", "^", "@", "#", "$", "%", "&", "*", "(", ")", "-", "+", "_", "?", ">", "<", "•", ";", "°", "¹", "²", "³", "£", "¢", "¬", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"}

local table = {"'", '"', "!", "ã", "õ", "ç", "´", "`", "á", "à", "ó", "ò", "é", "è", "í", "ì", "ú", "ù", "¹", "²", "³", "£", "¢", "¬", "§", "°", "º", "ª", "•", "|"}

 

for a = 1, #table do

if string.find(param, table[a]) then

doPlayerSendTextMessage(cid, 27, "Sorry, the nick has invalid symbols.")

return true

end

end

 

if string.len(param) <= 1 or string.len(param) >= 19 then

doPlayerSendTextMessage(cid, 27, "Sorry, that nick is too long or too short!")

return true

end

 

if getPlayerSlotItem(cid, 8).uid <= 0 then

doPlayerSendTextMessage(cid, 27, "Where is your pokemon?! You have to keep it at the main slot!")

return true

end

 

local nick = ""..param..""

local description = "Contains a "..getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke").."."

doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "nick", nick)

local newdes = description.."\nIt's nickname is: "..param.."."

doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "description", newdes)

if #getCreatureSummons(cid) >= 1 then

adjustStatus(getCreatureSummons(cid)[1], getPlayerSlotItem(cid, 8).uid)

end

 

return true

end

 

 

@drakinho

mano.. segue esse tutorial do yahooABC q tu deve conseguir arruma isso.. ;x

http://www.xtibia.co...46#entry1194446

@Jhonsy

achu q eh isso..

 

function onSay(cid, words, param, channel)

 

if not tostring(param) then

return doPlayerSendTextMessage(cid, 27, "Digite um nome para seu pokemon!")

end

 

local tablee = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "w", "y", "z", ".", ":", "'", '"', "~", "^", "@", "#", "$", "%", "&", "*", "(", ")", "-", "+", "_", "?", ">", "<", "•", ";", "°", "¹", "²", "³", "£", "¢", "¬", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"}

local table = {"'", '"', "!", "ã", "õ", "ç", "´", "`", "á", "à", "ó", "ò", "é", "è", "í", "ì", "ú", "ù", "¹", "²", "³", "£", "¢", "¬", "§", "°", "º", "ª", "•", "|"}

 

for a = 1, #table do

if string.find(param, table[a]) then

doPlayerSendTextMessage(cid, 27, "Sorry, the nick has invalid symbols.")

return true

end

end

 

if string.len(param) <= 1 or string.len(param) >= 19 then

doPlayerSendTextMessage(cid, 27, "Sorry, that nick is too long or too short!")

return true

end

 

if getPlayerSlotItem(cid, 8).uid <= 0 then

doPlayerSendTextMessage(cid, 27, "Where is your pokemon?! You have to keep it at the main slot!")

return true

end

 

local nick = ""..param..""

local description = "Contains a "..getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke").."."

doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "nick", nick)

local newdes = description.."\nIt's nickname is: "..param.."."

doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "description", newdes)

if #getCreatureSummons(cid) >= 1 then

adjustStatus(getCreatureSummons(cid)[1], getPlayerSlotItem(cid, 8).uid)

end

 

return true

end

 

 

@drakinho

mano.. segue esse tutorial do yahooABC q tu deve conseguir arruma isso.. ;x

http://www.xtibia.co...46#entry1194446

 

Valeu ai pela tentativa, mas bugou tudo aqui, vou deixar assim mesmo, são só alguns shinys, vou dizer q quando nao aparecer, é pokemon "indescoberto" pela equipe kkkkk'

 

Rep+ mesmo assim. ^.^

 

@up

 

Olha o client: http://www.4shared.c...cpx6B/POKE.html

 

( Substitua o POK.spr e o POK.dat pelo seu .dat e .spr pois os meus estão configurados para o pokemon centurion... se quiser pode tirar umas sprites q tem ae :) )

Vlws ae mano, muito obrigado.

Não quero sprite do Centurion, pois não gosto do Poke Centurion. Ele tem bug demais...

 

Meu Rep aeeeewww mdr.gif

SlicerS
22 de julho de 2012 às 11:54

@StyloMaldoso

pra ser sincero... n sei se vo atualizar mais aquele.. mas to pensando ainda..

sobre a golden arena.. oia.. criar os mobs la nas waves n eh dificil, eh trabalhaso, mas n dificil... o foda achu q seria pra verificar quem eh o ultimo a morre e pah... n sei.. talvez eu tente fazer ela aki quando tiver um tempim... dai te digo hehe

JG6J
22 de julho de 2012 às 12:15

Como eu adiciono novos pokemons os pokemons ja tem mais como eu coloco ele com ride??

Ex:

["Luxray"] = {1192, 800}, -- luxray

 

O que significa 1192 e o 800??

KurobisuK
22 de julho de 2012 às 13:55

Aviso!

 

Eae galera deste íncrivel tópico muito frequentado e vizualizado.

Gostaria de dizer a vocês que eu ( Kurobisu ) Abri um tópico para ser postado tooodas as ajudas importantes feitas em que eu ja vi aqui.

Ele está no momento com: + de 22 ajudas muito importantes.

Lá terá de ser um tópico bem mais organizado, e mais ativo.

Tentarei ajudar a todos com suas dúvidas lá e aqui, a escolha é de vocês.

Aqui vai o link para aqueles que querem retirar sua dúvidas:

AWeskersA
22 de julho de 2012 às 14:27

Alguem ae tem sprite de barco ? tipo uma lancha ?, to presisando de uma sprite assim.

Vlws ae.

Editado Julho 22 por Jhonsy

shadow2012S
22 de julho de 2012 às 15:01

Como eu adiciono novos pokemons os pokemons ja tem mais como eu coloco ele com ride??

Ex:

["Luxray"] = {1192, 800}, -- luxray

 

O que significa 1192 e o 800??

 

1192 = a newtype do ride

 

800= e a velocidade

 

para colocar uma novo newtype tem que fazer a conta numero do newtipe - 351 ai o resultado dessa conta e o newtype de ride do poke

Editado Julho 22 por shadow2012

LLossavaroL
22 de julho de 2012 às 15:09

@slicer

 

Melhorei um pouco o seu sistema de nick por talkactions

coloquei mensagem ao dar nick para o pokemon.

e na hora que ja tem nick manda a mensagem que ja tem nick

 

mdr.gif

 

 

 

function onSay(cid, words, param, channel)

 

if not tostring(param) then

return doPlayerSendTextMessage(cid, 27, "Digite um nome para seu pokemon!")

end

 

local tablee = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "w", "y", "z", ".", ":", "'", '"', "~", "^", "@", "#", "$", "%", "&", "*", "(", ")", "-", "+", "_", "?", ">", "<", "•", ";", "°", "¹", "²", "³", "£", "¢", "¬", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0"}

local table = {"'", '"', "!", "ã", "õ", "ç", "´", "`", "á", "à", "ó", "ò", "é", "è", "í", "ì", "ú", "ù", "¹", "²", "³", "£", "¢", "¬", "§", "°", "º", "ª", "•", "|"}

 

for a = 1, #table do

if string.find(param, table[a]) then

doPlayerSendTextMessage(cid, 27, "Sorry, the nick has invalid symbols.")

return true

end

end

 

local pb = getPlayerSlotItem(cid, 8).uid

if getItemAttribute(pb, "nick") or getItemAttribute(pb, "nick") then

doPlayerSendTextMessage(cid, 27, "Sorry, You pokemon have nick!")

focus = 0

return true

end

 

 

if string.len(param) <= 1 or string.len(param) >= 19 then

doPlayerSendTextMessage(cid, 27, "Sorry, that nick is too long or too short!")

return true

end

 

if getPlayerSlotItem(cid, 8).uid <= 0 then

doPlayerSendTextMessage(cid, 27, "Where is your pokemon?! You have to keep it at the main slot!")

return true

end

 

 

 

local nick = ""..param..""

local description = "Contains a "..getItemAttribute(getPlayerSlotItem(cid, 8).uid, "poke").."."

doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "nick", nick)

doPlayerSendTextMessage(cid, 27, "Congratulations, You added a nick in your pokemon '"..param.."'!")

local newdes = description.."\nIt's nickname is: "..param.."."

doItemSetAttribute(getPlayerSlotItem(cid, 8).uid, "description", newdes)

if #getCreatureSummons(cid) >= 1 then

adjustStatus(getCreatureSummons(cid)[1], getPlayerSlotItem(cid, 8).uid)

end

 

return true

end

 

 

 

Agradeçam ao Slicer!

por criar o sistema.

zerefshirouZ
22 de julho de 2012 às 17:34

@Kurobisu

Se aquela ajuda minha que ta no seu topico for gigantesca, minha participação da pagina 1~50 +/- nem tem nome então

AWeskersA
22 de julho de 2012 às 18:04

Galéra to querendo um script tipo do KpDo.

que tem aquéla barra de evolução do pokemon.

 

 

post-323907-0-58203600-1342991072_thumb.gif

 

 

Exemplo: dando use na no item o pokemon evolui apenas se estiver com o level cérto, e tbm presiso saber como desabilitar a evolução altomatica, para que só evolua atravez desse item.

zesyZ
22 de julho de 2012 às 18:39

Porra, tou com umas dúvidas aqui:

 

) Eu adicionei o Crystal Onix no meu Serv, só que tem uma problema, eu fiz tudo que o @ZerefShirou fez nesse tuto aqui, mas ele dá problema, ele tem "Ghost Walk", na verdade ele nao tem, isso é o bug... Ele passa nas paredes e outras coisas como se tivesse, e nao adianta me fala que ele deve tar na tabela o Ghost Walk pq ele nao tá... e tipo, coloquei ele num npc, só que quando eu mato ele, ele vira um corpo, ou seja, como se realmente fosse um "Wild"(Selvagem) já procurei outras tabelas pra ver se tem q add ele mais nao achei... isso é tenso...

 

) Como eu aumento o dano de pokemon selvagem? por exemplo: eu vou mata um Zapdos, só que ele nao "hita" mto os danos dele são fracos, como eu aumento?

 

) Bug que volta life do poke: Exemplo com Charizard.

• Você tira o Zard. Ele tá com vida full...

• Daí você tá caçando, até que ele fica com life no vermelho.

• Se você faz "logoff" com o Zard foda da ball, depois faz "login", ele vai tar dentro da bola, você tira o Zard e ele volta com o life que tava da ultima vez que ele tava dentro da ball, ou seja, life full.

 

• Se você chama o Zard com o life no amarelo pra dentro da ball e depois efetua o "logoff" depois o "login", ele ainda vai continuar com a life no amarelo, daí tu caça mais um poco com ele, até ele fica com o life no vermelho, você faz "logoff" com o Zard pra fora da ball, depois o "login", você usa o Zard dinovo ele tá com o life no amarelo(sendo que a ultima vez que você chamou ele, o Zard tava com o life no amarelo)

 

Conclusão, quando você faz "logoff" com o Pokemon pra fora da ball, não salva sua life, talvez nem seu Stats, eu ainda não ví, só percebi o life mesmo.

 

Entendeu agora?

 

 

Bom, eu acho q é isso...

Se precisar que explique melhor, só avisa que faço um texto :) kkkk...

 

Agradeço desde já...

Editado Julho 22 por ZeSy

zerefshirouZ
22 de julho de 2012 às 18:48

["Luxray"] = {1192, 800}, -- luxray

["Nome"] = {Outfit ID - 351, Speed},

 

@Zesy

1- Usa notepad++ em procurar "Gengar" em todos os arquivos ou "Ghost" / "ghost" e ve se acha algo do crystal onix, se não pode ser nas sources, no meu serve uma anta fez como Shiny Onix, só fiz umas mudanças para aparecer Crystal Onix, entre outros como Shiny Gyarados-Red Gyarados, Shiny Hitmonlee-Elite Hitmonlee etc...

 

2- Tem algo no configuration.lua sobre isso, mas se ta fraco é os status não?

 

3- Alguem tem dicionario ai?

DeboanaAtividadeD
22 de julho de 2012 às 19:27

Auguem ae pode me passar o cliente mais atualizado? O meu e meio antigo ainda, fiquei fora da enquete aqui mo tempão :/ Rep + quem me ajuda ae com o cliente.

LendreoL
22 de julho de 2012 às 19:59

Olá Xtibianos.. Alguem pode me ajudar nas bars? O problema e q tem q fala /pokeread ou clica na bolinha verde pra atualizar o hp, queria sabe ser alguem tem o scripit para ele atualizar sozinho a cada dano que o poke leva.

SlicerS
22 de julho de 2012 às 20:18

@ZeSy

3) achu q ta faltando algu +/- assim no teu creaturescripts/scripts/goback.lua

na "function onLogout(cid)"

 

if #getCreatureSummons(cid) >= 1 and thisitem.uid > 1 then

doItemSetAttribute(thisitem.uid, "hp", (getCreatureHealth(summon) / getCreatureMaxHealth(summon)))

doTransformItem(thisitem.uid, pokeballs[btype].on)

doSendMagicEffect(getThingPos(summon), pokeballs[btype].effect)

doRemoveCreature(summon)

end

 

 

@Lendreo

vai em creaturescripts/scripts/exp.lua

ache essa parte..

 

if runCond then

 

local condPos = getThingPos(cid)

local color = 215

local text = ""

local effect = 2

 

if damageCombat == FIREDAMAGE and not isBurning(cid) then

doAdvancedBurn(attacker, isPlayer(getCreatureMaster(attacker)) and getCreatureMaster(attacker) or 0, cid, getPokemonLevel(attacker) * 2, math.random(5, 12))

color = COLOR_FIRE2

text = "BURNING"

effect = 15

elseif damageCombat == POISONDAMAGE and not isPoisoned(cid) and randomCond == checkCond then

doAdvancedPoison(attacker, isPlayer(getCreatureMaster(attacker)) and getCreatureMaster(attacker) or 0, cid, getPokemonLevel(attacker) * 2, math.random(4, 20))

color = COLOR_GRASS

text = "POISONED"

effect = 8

end

 

doSendMagicEffect(getThingPos(cid), effect)

addEvent(doSendAnimatedText, 15, condPos, text, color)

end

 

 

e logo embaixo.. coloque isso...

 

-----------------CD BAR-----------------------

if isSummon(cid) then

doCreatureExecuteTalkAction(getCreatureMaster(cid), "/pokeread")

end

 

 

ja aviso q isso pode da um pouco de lag.. use com sabedoria kk

Editado Julho 22 por Slicer

zesyZ
22 de julho de 2012 às 20:26

@Slicer

 

Valeu ai, o meu tava diferente, depois eu vou testar.

 

Outra Dúvida:

Look.lua

 

if getCreatureMaster(thing.uid) == cid then

local myball = getPlayerSlotItem(cid, 8).uid

local nexp = getItemAttribute(myball, "nextlevelexp")

local nick = getItemAttribute(getPlayerSlotItem(getCreatureMaster(thing.uid), 8).uid, "nick") or nil

 

if nick ~= nil then

string = "You see your "..string.lower(getCreatureName(thing.uid)).." ("..getItemAttribute(getPlayerSlotItem(getCreatureMaster(thing.uid), 8).uid, "nick")..") "..levelinfo.."."

else

string = "You see your "..string.lower(getCreatureName(thing.uid)).." "..levelinfo.."."

end

string = string.."\nHit points: "..getCreatureHealth(thing.uid).."/"..getCreatureMaxHealth(thing.uid).."."

string = string.."\n"..getPokemonHappinessDescription(thing.uid)

if getItemAttribute(myball, "level") <= 99 then

string = string.."\nExperience needed to level up: "..nexp.."."

end

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string)

else

if nick ~= nil then

string2 = "You see a "..string.lower(getCreatureName(thing.uid)).." ("..getItemAttribute(getPlayerSlotItem(getCreatureMaster(thing.uid), 8).uid, "nick")..") "..levelinfo..".\nIt belongs to "..getCreatureName(getCreatureMaster(thing.uid)).."."

else

string2 = "You see a "..string.lower(getCreatureName(thing.uid)).." "..levelinfo..".\nIt belongs to "..getCreatureName(getCreatureMaster(thing.uid)).."."

end

doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string2)

end

 

 

return false

end

 

O que tem de errado na parte em negrito?

ela é a parte do look q quando o summon não é seu, aparece a msg, eu tava tentando faze aparece o Nick q nem no PxG pra fica bom... mais não vai :S